package com.keyue.domain.vo.admin;

import com.keyue.common.constant.Constant;
import com.keyue.domain.vo.BasePageVO;
import lombok.*;
import lombok.experimental.SuperBuilder;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * (Member)注册
 *
 * @author makejava
 * @since 2023-08-22 17:02:39
 */
@Data
@AllArgsConstructor
@ToString
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@SuperBuilder
public class AdminUserRegisterVO extends BasePageVO implements Serializable {
    private static final long serialVersionUID = -98570856671998407L;

    /**
     * 注册协议，true/false
     */
    @NotNull(message = "必须勾选协议!")
    private Boolean isAgreeAgreement;

    /**
     * 手机号码
     */
    @NotBlank(message = "手机号码不能为空!")
    @Pattern(message = "手机号码格式不正确", regexp = Constant.PHONE_REGEXP)
    private String phone;

    /**
     * 手机验证码
     */
    @NotBlank(message = "手机验证码不能为空!")
    private String smsCaptchaCode;

    /**
     * 用户名称
     */
    @NotBlank(message = "用户名称不能为空!")
    private String userName;

    /**
     * email
     */
    @NotBlank(message = "email不能为空!")
    private String email;

    /**
     * 密码
     */
    @NotBlank(message = "请设置密码!")
    private String password;

    /**
     * 确认密码
     */
    @NotBlank(message = "请二次确认密码!")
    private String confirmPassword;

    /**
     * 安全问题
     */
    private String safeQuestion;

    /**
     * 安全问题回答
     */
    private String safeAnswer;

}

